import xFetch, {
    get,
    post
} from '../util/xFetch';
import ajax from '../util/ajax';
import qs from 'qs';
import Service from '../service';

const API = {
    msgquery: `${Service.baseUrl}/admin/message/index`, // 消息列表
    query: `${Service.baseUrl}/admin/ai/info`, // 列表
    indexdata: `${Service.baseUrl}/admin/index/mobile_data`, //数据分析
    serchpersonal: `${Service.baseUrl}/admin/e_bike/index`, //人员列表
    confirm: `${Service.baseUrl}/express/express/send`, //签收
    getExpressCom: `${Service.baseUrl}/user/tool/getExpressCom`, //物流公司列表  未用
    getExpressRefuse: `${Service.baseUrl}/user/tool/getExpressRefuse`, // 添加
    getWechatConfig: `${Service.baseUrl}/user/tool/getWechatConfig`, // jssdk配置文件
    expressindex: `${Service.baseUrl}/express/express/index`, //快件列表
    comment: `${Service.baseUrl}/user/express/comment`, // 评价
    e_bikeInfo: `${Service.baseUrl}/express/e_bike/info`, // 快递员信息
    qiniuToken: `${Service.baseUrl}/express/tool/qiniuToken`, // 七牛token
    hot_keywords: `${Service.baseUrl}/admin/ai/hot_keywords`, // ai关键词
    personalserch: `${Service.baseUrl}/admin/e_bike/index`, // 快递员列表
    dataIndex: `${Service.baseUrl}/admin/data/index`, // 数据分析
}
// 地图
export const msgquery = async (params) => post(API.msgquery, params)
export const indexdata = async (params) => post(API.indexdata, params)
export const serchpersonal = async (params) => post(API.serchpersonal, params)
// ai系统
export const query = async (params) => post(API.query, params)
export const hot_keywords = async (params) => post(API.hot_keywords, params);

// 快递人员列表
export const Personalserch = async (params) => post(API.personalserch, params)

// 分析统计
export const dataIndex = async (params) => post(API.dataIndex, params)
